******************
*APPENDICE TABLES*
******************

*TABLE A.1**************************
*CHARACTERISTICS OF NDC-ALIGNED HHS*
************************************

cd "Replication Data"

use THPleaders_indiv_baselinepol_anon.dta, clear

*Generate HH-level dataset
bysort FPrimary: egen avfemale = mean(female)
bysort FPrimary: egen avage = mean(AgeYears)
bysort FPrimary: egen avgrade = mean(grade)
bysort FPrimary: egen avbornhere = mean(bornhere)
bysort FPrimary: egen avAkwapim = mean(Akwapim)
bysort FPrimary: egen avAkyem = mean(Akyem)
bysort FPrimary: egen avKrobo = mean(Krobo)
bysort FPrimary: egen avEwe = mean(Ewe)
bysort FPrimary: egen hh_count = seq()
keep if hh_count==1

reg NDC_HH_base avfemale avage avgrade avbornhere avAkwapim avAkyem avKrobo avEwe dur_asset_index0 organizations_HH_base, robust
reg NDC_HH_base avfemale avage avgrade avbornhere avAkwapim avAkyem avKrobo avEwe dur_asset_index0 organizations_HH_base i.distnum, robust

***TABLE C.1. PREDICTORS OF VILLAGE DISTANCE FROM EPICENTERS***

use distance_epicenter_NDC.dta, clear

global esttabformat b(%8.3f) se(%8.3f) obs r2(%8.3f) star(+ 0.10 * 0.05 ** 0.01)

gen logkm = log(km_to_epicenter+1)

eststo c1a: reg km_to_epicenter population NDC_vill_base elec_avail0 i.cluster if treatment==1, cluster(cluster)
eststo c1b: reg logkm population NDC_vill_base elec_avail0 i.cluster if treatment==1, cluster(cluster)

esttab c1a c1b using "tablec1.rtf", keep(population NDC_vill_base elec_avail0) order(population NDC_vill_base elec_avail0) $esttabformat replace label onecell


***TABLE D.1. BASELINE STATISTICS***

use finalusingindices_withbaselinepol_anon.dta, clear

ttest villageparticipation_index0, by(treatment)
reg villageparticipation_index0 treatment i.distnum, cluster(cluster2)
ttest villageparticipation_index0 if treatment==1, by(received)
reg villageparticipation_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest villagequality_index0, by(treatment)
reg villagequality_index0 treatment i.distnum, cluster(cluster2)
ttest villagequality_index0 if treatment==1, by(received)
reg villagequality_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest DAquality_index0, by(treatment)
reg DAquality_index0 treatment i.distnum, cluster(cluster2)
ttest DAquality_index0 if treatment==1, by(received)
reg DAquality_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest food_security_index0, by(treatment)
reg food_security_index0 treatment i.distnum, cluster(cluster2)
ttest food_security_index0 if treatment==1, by(received)
reg food_security_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest literacy_education_index0, by(treatment)
reg literacy_education_index0 treatment i.distnum, cluster(cluster2)
ttest literacy_education_index0 if treatment==1, by(received)
reg literacy_education_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest health_nutrition_index0, by(treatment)
reg health_nutrition_index0 treatment i.distnum, cluster(cluster2)
ttest health_nutrition_index0 if treatment==1, by(received)
reg health_nutrition_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest environment_index0, by(treatment)
reg environment_index0 treatment i.distnum, cluster(cluster2)
ttest environment_index0 if treatment==1, by(received)
reg environment_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest livelihood_index0, by(treatment)
reg livelihood_index0 treatment i.distnum, cluster(cluster2)
ttest livelihood_index0 if treatment==1, by(received)
reg livelihood_index0 received i.distnum if treatment==1, cluster(cluster2)

ttest NDC_HH_base, by(treatment)
reg NDC_HH_base treatment i.distnum, cluster(cluster2)
ttest NDC_HH_base if treatment==1, by(received)
reg NDC_HH_base received i.distnum if treatment==1, cluster(cluster2)

gen NDCstronghold = 0 if NDC_vill_base<.3
replace NDCstronghold = 1 if NDC_vill_base>=.3 & NDC_vill_base<.

ttest NDCstronghold, by(treatment)
reg NDCstronghold treatment i.distnum, cluster(cluster2)
ttest NDCstronghold if treatment==1, by(received)
reg NDCstronghold received i.distnum if treatment==1, cluster(cluster2)


*TABLE E1.************
*THP Leadership*
**********************

use THPleaders_indiv_baselinepol_anon, clear

drop if treatment==0

gen held_tradpol = 0 if held_tradition==0 & held_pol==0
replace held_tradpol = 1 if held_tradition==1
replace held_tradpol = 1 if held_pol==1


foreach var in female AgeYears grade bornhere dur_asset_index0 organizations_HH_base NDC_HH_base NPP_HH_base trustchief_HH_base trustpres_HH_base {

sum `var' if AgeYears>17 & AgeYears<.
local popN = r(N)
local popmean = r(mean)
local popsd = r(sd)
sum `var' if held_tradition==1
sum `var' if held_political==1
qui sum `var' if held_tradpol==1
local tradpolN = r(N)
local tradpolmean = r(mean)
local tradpolsd = r(sd)
sum `var' if THPAttendedSession==1
local attendeeN = r(N)
local attendeemean = r(mean)
local attendeesd = r(sd)
sum `var' if THPleader==1
local THPLN = r(N)
local THPLmean = r(mean)
local THPLsd = r(sd)
ttesti `popN' `popmean' `popsd' `attendeeN' `attendeemean' `attendeesd', level(95) unequal
ttesti `tradpolN' `tradpolmean' `tradpolsd' `THPLN' `THPLmean' `THPLsd', level(95) unequal
}


*TABLE E2.*******************
*EXPOSURE TO THP PROGRAMMING*
*****************************

use THPinvolvementdata_anon, clear

foreach var in THPAttendedSession THPAttendedPastMonth THPAnimatorConstruction THPFundraisers THPAnimator THPServeCommittee /*
*/ THPActivity timemoneyTHP{

sum `var' if treatment==0
sum `var'  if treatment==1 & received==0
sum `var' if treatment==1 & received==1
sum `var' if treatment==1 & NDC_HH_base==1
sum `var' if treatment==1 & NDC_HH_base==0
reg `var' treatment i.distnum, cluster(cluster) 
reg `var' NDC_HH_base i.distnum if treatment==1, cluster(cluster) 
}

*TABLE F1.*******************
*ATTRITION ANALYSIS**********
*****************************

use finalusingindices_withbaselinepol_anon.dta, replace

*Create new missing variable term 

loc indexvars villageparticipation_index0 villagequality_index0 DAquality_index0 food_security_index0 literacy_education_index0 health_nutrition_index0 environment_index0 livelihood_index0 NDC_HH_base


foreach var in `indexvars'{
	gen mi_`var' = mi(`var')
	loc milist `milist' mi_`var'
	replace `var' = 0 if mi(`var')
}


*Attrition analysis*

gen completed = 1 - attrit

reg completed treatment i.distnum, cluster(cluster2)
test treat 

reg completed treatment `indexvars' `milist' i.distnum, cluster(cluster2)
test treat 

*Generate interaction variables
foreach var in `indexvars'{
	gen t_`var' = treatment*`var'
	loc tlist `tlist' t_`var'
}


reg completed treatment `indexvars' `tlist' `milist' i.distnum, cluster(cluster2)
test treat `tlist' 



*******************************************
*TABLE H1. COMPONENTS OF POLITICAL INDICES*
*******************************************

use finalusingindices_withbaselinepol_anon.dta, clear

*RECODING MISSING BASELINE DATA AS 0 FOR VARIABLES*

foreach i in LastMeetingAttend LastMeetingAnyIssue DisagreeChief TrustChief VoteDA TrustDA{
	 replace `i'0 = 0 if `i'_miss == 1
}


*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in villageparticipation villagequality DAquality{
			replace `i'_index0 = 0 if `i'_miss == 1
}


reg villageparticipation_index1 treatment villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
ivregress gmm villageparticipation_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
sum villageparticipation_index1 if treatment==0 

reg TimeOrg1 treatment i.distnum, cluster(cluster2)
ivregress gmm TimeOrg1 (received=treatment) i.distnum, cluster(cluster2)
sum TimeOrg1 if treatment==0

reg LastMeetingAttend1 treatment LastMeetingAttend0 LastMeetingAttend_miss i.distnum, cluster(cluster2)
ivregress gmm LastMeetingAttend1 (received=treatment) LastMeetingAttend0 LastMeetingAttend_miss i.distnum, cluster(cluster2)
sum LastMeetingAttend1 if treatment==0

reg LastMeetingAnyIssue1 treatment LastMeetingAnyIssue0 LastMeetingAnyIssue_miss i.distnum, cluster(cluster2)
ivregress gmm LastMeetingAnyIssue1 (received=treatment) LastMeetingAnyIssue0 LastMeetingAnyIssue_miss i.distnum, cluster(cluster2)
sum LastMeetingAnyIssue1 if treatment==0

***

reg villagequality_index1 treatment villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
ivregress gmm villagequality_index1 (received=treatment) villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
sum villagequality_index1 if treatment==0 

reg TalkChief1 treatment i.distnum, cluster(cluster2)
ivregress gmm TalkChief1 (received=treatment) i.distnum, cluster(cluster2)
sum TalkChief1 if treatment==0

reg DisagreeChief1 treatment DisagreeChief0 DisagreeChief_miss i.distnum, cluster(cluster2)
ivregress gmm DisagreeChief1 (received=treatment) DisagreeChief0 DisagreeChief_miss i.distnum, cluster(cluster2)
sum DisagreeChief1 if treatment==0

reg TrustChief1 treatment TrustChief0 TrustChief_miss i.distnum, cluster(cluster2)
ivregress gmm TrustChief1 (received=treatment) TrustChief0 TrustChief_miss i.distnum, cluster(cluster2)
sum TrustChief1 if treatment==0 

***

reg DAquality_index1 treatment DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
ivregress gmm DAquality_index1 (received=treatment) DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
sum DAquality_index1 if treatment==0 

reg TalkDA1 treatment i.distnum, cluster(cluster2)
ivregress gmm TalkDA1 (received=treatment) i.distnum, cluster(cluster2)
sum TalkDA1 if treatment==0

reg SatisfiedAbility1 treatment i.distnum, cluster(cluster2)
ivregress gmm SatisfiedAbility1 (received=treatment) i.distnum, cluster(cluster2)
sum SatisfiedAbility1 if treatment==0

reg TrustDA1 treatment TrustDA0 TrustDA_miss i.distnum, cluster(cluster2)
ivregress gmm TrustDA1 (received=treatment) TrustDA0 TrustDA_miss i.distnum, cluster(cluster2)
sum TrustDA1 if treatment==0


******************************************
*TABLE H2********************************
*COMPONENTS OF MAIN SOCIOECONOMIC INCIDES*
******************************************

use finalusingindices_withbaselinepol_anon.dta, clear

*recode missing baseline data as 0*

foreach i in food_security literacy_education health_nutrition environment livelihood{
			replace `i'_index0 = 0 if `i'_miss == 1
}

foreach i in farm_improve educ school_qual litnum litnum_fem anthro health_access health_visits prenatal postnatal hiv pub_sanit electric biz dur_asset fin_saving fin_credit{
            replace `i'_index0 = 0 if `i'_miss ==1
			}

foreach i in exp_food child_labor mort_child immun mort farm_invest hh_inc exp_nonfood{
            replace `i'_index0 = 0 if `i'_miss ==1
			}
	

	
***********************************

reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum, cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum, cluster(cluster2)
sum food_security_index1 if treatment==0

reg mkt_improve_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm mkt_improve_index1 (received=treatment) i.distnum, cluster(cluster2)
sum mkt_improve_index1 if treatment==0

reg exp_food_index1 treatment exp_food_index0 exp_food_miss i.distnum, cluster(cluster2)
ivregress gmm exp_food_index1 (received=treatment) exp_food_index0 exp_food_miss i.distnum, cluster(cluster2)
sum exp_food_index1 if treatment==0

reg farm_improve_index1 treatment farm_improve_index0 farm_improve_miss i.distnum, cluster(cluster2)
ivregress gmm farm_improve_index1 (received=treatment) farm_improve_index0 farm_improve_miss i.distnum, cluster(cluster2)
sum farm_improve_index1 if treatment==0

**********************************

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum, cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum, cluster(cluster2)
sum literacy_education_index1 if treatment==0

reg educ_index1 treatment educ_index0 educ_miss i.distnum, cluster(cluster2)
ivregress gmm educ_index1 (received=treatment) educ_index0 educ_miss i.distnum, cluster(cluster2)
sum educ_index1 if treatment==0

reg school_qual_index1 treatment school_qual_index0 school_qual_miss i.distnum, cluster(cluster2)
ivregress gmm school_qual_index1 (received=treatment) school_qual_index0 school_qual_miss i.distnum, cluster(cluster2)
sum school_qual_index1 if treatment==0

reg litnum_index1 treatment litnum_index0 litnum_miss i.distnum, cluster(cluster2)
ivregress gmm litnum_index1 (received=treatment) litnum_index0 litnum_miss i.distnum, cluster(cluster2)
sum litnum_index1 if treatment==0

reg litnum_fem_index1 treatment litnum_fem_index0 litnum_fem_miss i.distnum, cluster(cluster2)
ivregress gmm litnum_fem_index1 (received=treatment) litnum_fem_index0 litnum_fem_miss i.distnum, cluster(cluster2)
sum litnum_fem_index1 if treatment==0

reg child_labor_index1 treatment child_labor_index0 child_labor_miss i.distnum, cluster(cluster2)
ivregress gmm child_labor_index1 (received=treatment) child_labor_index0 child_labor_miss i.distnum, cluster(cluster2)
sum child_labor_index1 if treatment==0

*********************************

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum, cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum, cluster(cluster2)
sum health_nutrition_index1 if treatment==0

reg mort_child_index1 treatment mort_child_index0 mort_child_miss i.distnum, cluster(cluster2)
ivregress gmm mort_child_index1 (received=treatment) mort_child_index0 mort_child_miss i.distnum, cluster(cluster2)
sum mort_child_index1 if treatment==0

reg anthro_index1 treatment anthro_index0 anthro_miss i.distnum, cluster(cluster2)
ivregress gmm anthro_index1 (received=treatment) anthro_index0 anthro_miss i.distnum, cluster(cluster2)
sum anthro_index1 if treatment==0

reg health_access_index1 treatment health_access_index0 health_access_miss i.distnum, cluster(cluster2)
ivregress gmm health_access_index1 (received=treatment) health_access_index0 health_access_miss i.distnum, cluster(cluster2)
sum health_access_index1 if treatment==0

reg health_visits_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm health_visits_index1 (received=treatment) i.distnum, cluster(cluster2)
sum health_visits_index1 if treatment==0

reg contracept_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm contracept_index1 (received=treatment) i.distnum, cluster(cluster2)
sum contracept_index1 if treatment==0

reg prenatal_index1 treatment prenatal_index0 prenatal_miss i.distnum, cluster(cluster2)
ivregress gmm prenatal_index1 (received=treatment) prenatal_index0 prenatal_miss i.distnum, cluster(cluster2)
sum prenatal_index1 if treatment==0

reg postnatal_index1 treatment postnatal_index0 postnatal_miss i.distnum, cluster(cluster2)
ivregress gmm postnatal_index1 (received=treatment) postnatal_index0 postnatal_miss i.distnum, cluster(cluster2)
sum postnatal_index1 if treatment==0

reg immun_index1 treatment immun_index0 immun_miss i.distnum, cluster(cluster2)
ivregress gmm immun_index1 (received=treatment) immun_index0 immun_miss i.distnum, cluster(cluster2)
sum immun_index1 if treatment==0

reg mort_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm mort_index1 (received=treatment) i.distnum, cluster(cluster2)
sum mort_index1 if treatment==0

reg hiv_index1 treatment hiv_index0 hiv_miss i.distnum, cluster(cluster2)
ivregress gmm hiv_index1 (received=treatment) hiv_index0 hiv_miss i.distnum, cluster(cluster2)
sum hiv_index1 if treatment==0

***********************************
reg environment_index1 treatment environment_index0 environment_miss i.distnum, cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum, cluster(cluster2)
sum environment_index1 if treatment==0

reg pub_sanit_index1 treatment pub_sanit_index0 pub_sanit_miss i.distnum, cluster(cluster2)
ivregress gmm pub_sanit_index1 (received=treatment) pub_sanit_index0 pub_sanit_miss i.distnum, cluster(cluster2)
sum pub_sanit_index1 if treatment==0

reg pub_water_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm pub_water_index1 (received=treatment) i.distnum, cluster(cluster2)
sum pub_water_index1 if treatment==0

reg electric_index1 treatment electric_index0 electric_miss i.distnum, cluster(cluster2)
ivregress gmm electric_index1 (received=treatment) electric_index0 electric_miss i.distnum, cluster(cluster2)
sum electric_index1 if treatment==0

reg conserv_ag_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm conserv_ag_index1 (received=treatment) i.distnum, cluster(cluster2)
sum conserv_ag_index1 if treatment==0

***********************************
reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum, cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum, cluster(cluster2)
sum livelihood_index1 if treatment==0

reg biz_index1 treatment biz_index0 biz_miss i.distnum, cluster(cluster2)
ivregress gmm biz_index1 (received=treatment) biz_index0 biz_miss i.distnum, cluster(cluster2)
sum biz_index1 if treatment==0

reg dur_asset_index1 treatment dur_asset_index0 dur_asset_miss i.distnum, cluster(cluster2)
ivregress gmm dur_asset_index1 (received=treatment) dur_asset_index0 dur_asset_miss i.distnum, cluster(cluster2)
sum dur_asset_index1 if treatment==0

reg farm_invest_index1 treatment farm_invest_index0 farm_invest_miss i.distnum, cluster(cluster2)
ivregress gmm farm_invest_index1 (received=treatment) farm_invest_index0 farm_invest_miss i.distnum, cluster(cluster2)
sum farm_invest_index1 if treatment==0

reg hh_inc_index1 treatment hh_inc_index0 hh_inc_miss i.distnum, cluster(cluster2)
ivregress gmm hh_inc_index1 (received=treatment) hh_inc_index0 hh_inc_miss i.distnum, cluster(cluster2)
sum hh_inc_index1 if treatment==0

reg fin_saving_index1 treatment fin_saving_index0 fin_saving_miss i.distnum, cluster(cluster2)
ivregress gmm fin_saving_index1 (received=treatment) fin_saving_index0 fin_saving_miss i.distnum, cluster(cluster2)
sum fin_saving_index1 if treatment==0

reg fin_credit_index1 treatment fin_credit_index0 fin_credit_miss i.distnum, cluster(cluster2)
ivregress gmm fin_credit_index1 (received=treatment) fin_credit_index0 fin_credit_miss i.distnum, cluster(cluster2)
sum fin_credit_index1 if treatment==0

reg exp_nonfood_index1 treatment exp_nonfood_index0 exp_nonfood_miss i.distnum, cluster(cluster2)
ivregress gmm exp_nonfood_index1 (received=treatment) exp_nonfood_index0 exp_nonfood_miss i.distnum, cluster(cluster2)
sum exp_nonfood_index1 if treatment==0

***************************************
*TABLE H3. RESULTS FOR NDC-ALIGNED HHS*
***************************************

reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum food_security_index1 if treatment==0 & NDC_HH_base==1

reg mkt_improve_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm mkt_improve_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum mkt_improve_index1 if treatment==0 & NDC_HH_base==1

reg exp_food_index1 treatment exp_food_index0 exp_food_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm exp_food_index1 (received=treatment) exp_food_index0 exp_food_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum exp_food_index1 if treatment==0 & NDC_HH_base==1

reg farm_improve_index1 treatment farm_improve_index0 farm_improve_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm farm_improve_index1 (received=treatment) farm_improve_index0 farm_improve_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum farm_improve_index1 if treatment==0 & NDC_HH_base==1

**********************************

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum literacy_education_index1 if treatment==0 & NDC_HH_base==1

reg educ_index1 treatment educ_index0 educ_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm educ_index1 (received=treatment) educ_index0 educ_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum educ_index1 if treatment==0 & NDC_HH_base==1

reg school_qual_index1 treatment school_qual_index0 school_qual_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm school_qual_index1 (received=treatment) school_qual_index0 school_qual_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum school_qual_index1 if treatment==0 & NDC_HH_base==1

reg litnum_index1 treatment litnum_index0 litnum_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm litnum_index1 (received=treatment) litnum_index0 litnum_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum litnum_index1 if treatment==0 & NDC_HH_base==1

reg litnum_fem_index1 treatment litnum_fem_index0 litnum_fem_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm litnum_fem_index1 (received=treatment) litnum_fem_index0 litnum_fem_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum litnum_fem_index1 if treatment==0 & NDC_HH_base==1

reg child_labor_index1 treatment child_labor_index0 child_labor_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm child_labor_index1 (received=treatment) child_labor_index0 child_labor_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum child_labor_index1 if treatment==0 & NDC_HH_base==1

*********************************

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==1

reg mort_child_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm mort_child_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum mort_child_index1 if treatment==0 & NDC_HH_base==1

reg anthro_index1 treatment anthro_index0 anthro_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm anthro_index1 (received=treatment) anthro_index0 anthro_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum anthro_index1 if treatment==0 & NDC_HH_base==1

reg health_access_index1 treatment health_access_index0 health_access_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm health_access_index1 (received=treatment) health_access_index0 health_access_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum health_access_index1 if treatment==0 & NDC_HH_base==1

reg health_visits_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm health_visits_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum health_visits_index1 if treatment==0 & NDC_HH_base==1

reg contracept_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm contracept_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum contracept_index1 if treatment==0 & NDC_HH_base==1

reg prenatal_index1 treatment prenatal_index0 prenatal_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm prenatal_index1 (received=treatment) prenatal_index0 prenatal_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum prenatal_index1 if treatment==0 & NDC_HH_base==1

reg postnatal_index1 treatment postnatal_index0 postnatal_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm postnatal_index1 (received=treatment) postnatal_index0 postnatal_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum postnatal_index1 if treatment==0 & NDC_HH_base==1

reg immun_index1 treatment immun_index0 immun_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm immun_index1 (received=treatment) immun_index0 immun_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum immun_index1 if treatment==0 & NDC_HH_base==1

reg mort_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm mort_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum mort_index1 if treatment==0 & NDC_HH_base==1

reg hiv_index1 treatment hiv_index0 hiv_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm hiv_index1 (received=treatment) hiv_index0 hiv_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum hiv_index1 if treatment==0 & NDC_HH_base==1

***********************************
reg environment_index1 treatment environment_index0 environment_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum environment_index1 if treatment==0 & NDC_HH_base==1

reg pub_sanit_index1 treatment pub_sanit_index0 pub_sanit_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm pub_sanit_index1 (received=treatment) pub_sanit_index0 pub_sanit_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum pub_sanit_index1 if treatment==0 & NDC_HH_base==1

reg pub_water_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm pub_water_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum pub_water_index1 if treatment==0 & NDC_HH_base==1

reg electric_index1 treatment electric_index0 electric_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm electric_index1 (received=treatment) electric_index0 electric_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum electric_index1 if treatment==0 & NDC_HH_base==1

reg conserv_ag_index1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm conserv_ag_index1 (received=treatment) i.distnum if NDC_HH_base==1, cluster(cluster2)
sum conserv_ag_index1 if treatment==0 & NDC_HH_base==1

***********************************

reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum livelihood_index1 if treatment==0 & NDC_HH_base==1

reg biz_index1 treatment biz_index0 biz_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm biz_index1 (received=treatment) biz_index0 biz_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum biz_index1 if treatment==0 & NDC_HH_base==1

reg dur_asset_index1 treatment dur_asset_index0 dur_asset_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm dur_asset_index1 (received=treatment) dur_asset_index0 dur_asset_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum dur_asset_index1 if treatment==0 & NDC_HH_base==1

reg farm_invest_index1 treatment farm_invest_index0 farm_invest_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm farm_invest_index1 (received=treatment) farm_invest_index0 farm_invest_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum farm_invest_index1 if treatment==0 & NDC_HH_base==1

reg hh_inc_index1 treatment hh_inc_index0 hh_inc_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm hh_inc_index1 (received=treatment) hh_inc_index0 hh_inc_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum hh_inc_index1 if treatment==0 & NDC_HH_base==1

reg fin_saving_index1 treatment fin_saving_index0 fin_saving_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm fin_saving_index1 (received=treatment) fin_saving_index0 fin_saving_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum fin_saving_index1 if treatment==0 & NDC_HH_base==1

reg fin_credit_index1 treatment fin_credit_index0 fin_credit_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm fin_credit_index1 (received=treatment) fin_credit_index0 fin_credit_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum fin_credit_index1 if treatment==0 & NDC_HH_base==1

reg exp_nonfood_index1 treatment exp_nonfood_index0 exp_nonfood_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm exp_nonfood_index1 (received=treatment) exp_nonfood_index0 exp_nonfood_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
sum exp_nonfood_index1 if treatment==0 & NDC_HH_base==1

***************************************
*TABLE H4. RESULTS FOR NON-NDC-ALIGNED HHS*
***************************************

reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum food_security_index1 if treatment==0 & NDC_HH_base==0

reg mkt_improve_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm mkt_improve_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum mkt_improve_index1 if treatment==0 & NDC_HH_base==0

reg exp_food_index1 treatment exp_food_index0 exp_food_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm exp_food_index1 (received=treatment) exp_food_index0 exp_food_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum exp_food_index1 if treatment==0 & NDC_HH_base==0

reg farm_improve_index1 treatment farm_improve_index0 farm_improve_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm farm_improve_index1 (received=treatment) farm_improve_index0 farm_improve_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum farm_improve_index1 if treatment==0 & NDC_HH_base==0

**********************************

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum literacy_education_index1 if treatment==0 & NDC_HH_base==0

reg educ_index1 treatment educ_index0 educ_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm educ_index1 (received=treatment) educ_index0 educ_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum educ_index1 if treatment==0 & NDC_HH_base==0

reg school_qual_index1 treatment school_qual_index0 school_qual_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm school_qual_index1 (received=treatment) school_qual_index0 school_qual_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum school_qual_index1 if treatment==0 & NDC_HH_base==0

reg litnum_index1 treatment litnum_index0 litnum_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm litnum_index1 (received=treatment) litnum_index0 litnum_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum litnum_index1 if treatment==0 & NDC_HH_base==0

reg litnum_fem_index1 treatment litnum_fem_index0 litnum_fem_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm litnum_fem_index1 (received=treatment) litnum_fem_index0 litnum_fem_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum litnum_fem_index1 if treatment==0 & NDC_HH_base==0

reg child_labor_index1 treatment child_labor_index0 child_labor_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm child_labor_index1 (received=treatment) child_labor_index0 child_labor_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum child_labor_index1 if treatment==0 & NDC_HH_base==0

*********************************

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==0

reg mort_child_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm mort_child_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum mort_child_index1 if treatment==0 & NDC_HH_base==0

reg anthro_index1 treatment anthro_index0 anthro_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm anthro_index1 (received=treatment) anthro_index0 anthro_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum anthro_index1 if treatment==0 & NDC_HH_base==0

reg health_access_index1 treatment health_access_index0 health_access_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm health_access_index1 (received=treatment) health_access_index0 health_access_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum health_access_index1 if treatment==0 & NDC_HH_base==0

reg health_visits_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm health_visits_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum health_visits_index1 if treatment==0 & NDC_HH_base==0

reg contracept_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm contracept_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum contracept_index1 if treatment==0 & NDC_HH_base==0

reg prenatal_index1 treatment prenatal_index0 prenatal_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm prenatal_index1 (received=treatment) prenatal_index0 prenatal_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum prenatal_index1 if treatment==0 & NDC_HH_base==0

reg postnatal_index1 treatment postnatal_index0 postnatal_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm postnatal_index1 (received=treatment) postnatal_index0 postnatal_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum postnatal_index1 if treatment==0 & NDC_HH_base==0

reg immun_index1 treatment immun_index0 immun_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm immun_index1 (received=treatment) immun_index0 immun_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum immun_index1 if treatment==0 & NDC_HH_base==0

reg mort_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm mort_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum mort_index1 if treatment==0 & NDC_HH_base==0

reg hiv_index1 treatment hiv_index0 hiv_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm hiv_index1 (received=treatment) hiv_index0 hiv_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum hiv_index1 if treatment==0 & NDC_HH_base==0

***********************************
reg environment_index1 treatment environment_index0 environment_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum environment_index1 if treatment==0 & NDC_HH_base==0

reg pub_sanit_index1 treatment pub_sanit_index0 pub_sanit_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm pub_sanit_index1 (received=treatment) pub_sanit_index0 pub_sanit_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum pub_sanit_index1 if treatment==0 & NDC_HH_base==0

reg pub_water_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm pub_water_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum pub_water_index1 if treatment==0 & NDC_HH_base==0

reg electric_index1 treatment electric_index0 electric_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm electric_index1 (received=treatment) electric_index0 electric_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum electric_index1 if treatment==0 & NDC_HH_base==0

reg conserv_ag_index1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm conserv_ag_index1 (received=treatment) i.distnum if NDC_HH_base==0, cluster(cluster2)
sum conserv_ag_index1 if treatment==0 & NDC_HH_base==0

***********************************

reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum livelihood_index1 if treatment==0 & NDC_HH_base==0

reg biz_index1 treatment biz_index0 biz_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm biz_index1 (received=treatment) biz_index0 biz_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum biz_index1 if treatment==0 & NDC_HH_base==0

reg dur_asset_index1 treatment dur_asset_index0 dur_asset_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm dur_asset_index1 (received=treatment) dur_asset_index0 dur_asset_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum dur_asset_index1 if treatment==0 & NDC_HH_base==0

reg farm_invest_index1 treatment farm_invest_index0 farm_invest_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm farm_invest_index1 (received=treatment) farm_invest_index0 farm_invest_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum farm_invest_index1 if treatment==0 & NDC_HH_base==0

reg hh_inc_index1 treatment hh_inc_index0 hh_inc_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm hh_inc_index1 (received=treatment) hh_inc_index0 hh_inc_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum hh_inc_index1 if treatment==0 & NDC_HH_base==0

reg fin_saving_index1 treatment fin_saving_index0 fin_saving_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm fin_saving_index1 (received=treatment) fin_saving_index0 fin_saving_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum fin_saving_index1 if treatment==0 & NDC_HH_base==0

reg fin_credit_index1 treatment fin_credit_index0 fin_credit_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm fin_credit_index1 (received=treatment) fin_credit_index0 fin_credit_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum fin_credit_index1 if treatment==0 & NDC_HH_base==0

reg exp_nonfood_index1 treatment exp_nonfood_index0 exp_nonfood_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm exp_nonfood_index1 (received=treatment) exp_nonfood_index0 exp_nonfood_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
sum exp_nonfood_index1 if treatment==0 & NDC_HH_base==0


******************************************
*TABLE H5. COMPONENTS OF SUB-INDICES******
******************************************

foreach i in mktprice OwnAny high_grade attendance school_day teacher_grade st_t_ratio Reading Math ReadingFemale MathFemale{
            replace `i'0 = 0 if `i'_miss ==1
			}

foreach i in Height_cm_age2 Weight_kg_age2 Arm_cm_age2 Height_cm_age3 Weight_kg_age3 Arm_cm_age3{
            replace `i'0 = 0 if `i'_miss ==1
			}

foreach i in immun_avail patient_no prenatal_avail deliver bed_no AnyPrenatal WeeksFirstPrenatal WhoFirstPrenatal WhoFirstPrenatalTimes{
            replace `i'0 = 0 if `i'_miss ==1
			}
			
foreach i in PostNatal PostNatalTimes Breastfeed Water Liquid Solid Height_cm_age1 Weight_kg_age1 Arm_cm_age1 HIV_Heard HIV_Prevent HIV_LookHealthy HIV_MtC{
            replace `i'0 = 0 if `i'_miss ==1
			}			

foreach i in elec_avail elec_recent elec_pct elec_noloss BizProfit StartBiz TV satellite refrigerators fans sewingmachine motorcycle bicycle{
            replace `i'0 = 0 if `i'_miss ==1
			}				

			
foreach i in Savings SavingsFlow SavingsBalance fin_exist loan_form fin_loan i_rate_neg{
            replace `i'0 = 0 if `i'_miss ==1
			}	

			
reg mkt_improve_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm mkt_improve_index1 (received=treatment) i.distnum, cluster(cluster2)
sum mkt_improve_index1 if treatment==0

reg maizeprice1 treatment i.distnum, cluster(cluster2)
ivregress gmm maizeprice1 (received=treatment) i.distnum, cluster(cluster2)
sum maizeprice1 if treatment==0

reg sellmaize1 treatment i.distnum, cluster(cluster2)
ivregress gmm sellmaize1 (received=treatment) i.distnum, cluster(cluster2)
sum sellmaize1 if treatment==0

**********************

reg farm_improve_index1 treatment farm_improve_index0 farm_improve_miss i.distnum, cluster(cluster2)
ivregress gmm farm_improve_index1 (received=treatment) farm_improve_index0 farm_improve_miss i.distnum, cluster(cluster2)
sum farm_improve_index1 if treatment==0

reg Improvement1 treatment i.distnum, cluster(cluster2)
ivregress gmm Improvement1 (received=treatment) i.distnum, cluster(cluster2)
sum Improvement1 if treatment==0

reg mktprice1 treatment mktprice0 mktprice_miss i.distnum, cluster(cluster2)
ivregress gmm mktprice1 (received=treatment) mktprice0 mktprice_miss i.distnum, cluster(cluster2)
sum mktprice1 if treatment==0

reg CultivatedAcres1 treatment i.distnum, cluster(cluster2)
ivregress gmm CultivatedAcres1 (received=treatment) i.distnum, cluster(cluster2)
sum CultivatedAcres1 if treatment==0

reg SaleValue1 treatment i.distnum, cluster(cluster2)
ivregress gmm SaleValue1 (received=treatment) i.distnum, cluster(cluster2)
sum SaleValue1 if treatment==0

reg OwnAny1 treatment i.distnum, cluster(cluster2)
ivregress gmm OwnAny1 (received=treatment) i.distnum, cluster(cluster2)
sum OwnAny1 if treatment==0

*************************

reg educ_index1 treatment educ_index0 educ_miss i.distnum, cluster(cluster2)
ivregress gmm educ_index1 (received=treatment) educ_index0 educ_miss i.distnum, cluster(cluster2)
sum educ_index1 if treatment==0

reg high_grade1 treatment high_grade0 high_grade_miss i.distnum, cluster(cluster2)
ivregress gmm high_grade1 (received=treatment) high_grade0 high_grade_miss i.distnum, cluster(cluster2)
sum high_grade1 if treatment==0

reg attendance1 treatment attendance0 attendance_miss i.distnum, cluster(cluster2)
ivregress gmm attendance1 (received=treatment) attendance0 attendance_miss i.distnum, cluster(cluster2)
sum attendance1 if treatment==0

***************

reg school_qual_index1 treatment school_qual_index0 school_qual_miss i.distnum, cluster(cluster2)
ivregress gmm school_qual_index1 (received=treatment) school_qual_index0 school_qual_miss i.distnum, cluster(cluster2)
sum school_qual_index1 if treatment==0

reg school_day1 treatment school_day0 school_day_miss i.distnum, cluster(cluster2)
ivregress gmm school_day1 (received=treatment) school_day0 school_day_miss i.distnum, cluster(cluster2)
sum school_day1 if treatment==0

reg teacher_grade1 treatment teacher_grade0 teacher_grade_miss i.distnum, cluster(cluster2)
ivregress gmm teacher_grade1 (received=treatment) teacher_grade0 teacher_grade_miss i.distnum, cluster(cluster2)
sum teacher_grade1 if treatment==0

reg st_t_ratio1 treatment st_t_ratio0 st_t_ratio_miss i.distnum, cluster(cluster2)
ivregress gmm st_t_ratio1 (received=treatment) st_t_ratio0 st_t_ratio_miss i.distnum, cluster(cluster2)
sum st_t_ratio1 if treatment==0

***************

reg litnum_index1 treatment litnum_index0 litnum_miss i.distnum, cluster(cluster2)
ivregress gmm litnum_index1 (received=treatment) litnum_index0 litnum_miss i.distnum, cluster(cluster2)
sum litnum_index1 if treatment==0

reg Reading1 treatment Reading0 Reading_miss i.distnum, cluster(cluster2)
ivregress gmm Reading1 (received=treatment) Reading0 Reading_miss i.distnum, cluster(cluster2)
sum Reading1 if treatment==0

reg Math1 treatment Math0 Math_miss i.distnum, cluster(cluster2)
ivregress gmm Math1 (received=treatment) Math0 Math_miss i.distnum, cluster(cluster2)
sum Math1 if treatment==0

reg litnum_fem_index1 treatment litnum_fem_index0 litnum_fem_miss i.distnum, cluster(cluster2)
ivregress gmm litnum_fem_index1 (received=treatment) litnum_fem_index0 litnum_fem_miss i.distnum, cluster(cluster2)
sum litnum_fem_index1 if treatment==0

reg ReadingFemale1 treatment ReadingFemale0 ReadingFemale_miss i.distnum, cluster(cluster2)
ivregress gmm ReadingFemale1 (received=treatment) ReadingFemale0 ReadingFemale_miss i.distnum, cluster(cluster2)
sum ReadingFemale1 if treatment==0

reg MathFemale1 treatment MathFemale0 MathFemale_miss i.distnum, cluster(cluster2)
ivregress gmm MathFemale1 (received=treatment) MathFemale0 MathFemale_miss i.distnum, cluster(cluster2)
sum MathFemale1 if treatment==0

****************************************

reg anthro_index1 treatment anthro_index0 anthro_miss i.distnum, cluster(cluster2)
ivregress gmm anthro_index1 (received=treatment) anthro_index0 anthro_miss i.distnum, cluster(cluster2)
sum anthro_index1 if treatment==0

reg Height_cm_age21 treatment i.distnum, cluster(cluster2)
ivregress gmm Height_cm_age21 (received=treatment) i.distnum, cluster(cluster2)
sum Height_cm_age21 if treatment==0

reg Weight_kg_age21 treatment Weight_kg_age20 Weight_kg_age2_miss i.distnum, cluster(cluster2)
ivregress gmm Weight_kg_age21 (received=treatment) Weight_kg_age20 Weight_kg_age2_miss i.distnum, cluster(cluster2)
sum Weight_kg_age21 if treatment==0

reg Arm_cm_age21 treatment Arm_cm_age20 Arm_cm_age2_miss i.distnum, cluster(cluster2)
ivregress gmm Arm_cm_age21 (received=treatment) Arm_cm_age20 Arm_cm_age2_miss i.distnum, cluster(cluster2)
sum Arm_cm_age21 if treatment==0

reg Height_cm_age31 treatment Height_cm_age30 Height_cm_age3_miss i.distnum, cluster(cluster2)
ivregress gmm Height_cm_age31 (received=treatment) Height_cm_age30 Height_cm_age3_miss i.distnum, cluster(cluster2)
sum Height_cm_age31 if treatment==0

reg Weight_kg_age31 treatment Weight_kg_age30 Weight_kg_age3_miss i.distnum, cluster(cluster2)
ivregress gmm Weight_kg_age31 (received=treatment) Weight_kg_age30 Weight_kg_age3_miss i.distnum, cluster(cluster2)
sum Weight_kg_age31 if treatment==0

reg Arm_cm_age31 treatment Arm_cm_age30 Arm_cm_age3_miss i.distnum, cluster(cluster2)
ivregress gmm Arm_cm_age31 (received=treatment) Arm_cm_age30 Arm_cm_age3_miss i.distnum, cluster(cluster2)
sum Arm_cm_age31 if treatment==0

**************

reg health_access_index1 treatment health_access_index0 health_access_miss i.distnum, cluster(cluster2)
ivregress gmm health_access_index1 (received=treatment) health_access_index0 health_access_miss i.distnum, cluster(cluster2)
sum health_access_index1 if treatment==0

reg post20081 treatment i.distnum, cluster(cluster2)
ivregress gmm post20081 (received=treatment) i.distnum, cluster(cluster2)
sum post20081 if treatment==0

reg immun_avail1 treatment immun_avail0 immun_avail_miss i.distnum, cluster(cluster2)
ivregress gmm immun_avail1 (received=treatment) immun_avail0 immun_avail_miss i.distnum, cluster(cluster2)
sum immun_avail1 if treatment==0

reg patient_no1 treatment patient_no0 patient_no_miss i.distnum, cluster(cluster2)
ivregress gmm patient_no1 (received=treatment) patient_no0 patient_no_miss i.distnum, cluster(cluster2)
sum patient_no1 if treatment==0

reg prenatal_avail1 treatment prenatal_avail0 prenatal_avail_miss i.distnum, cluster(cluster2)
ivregress gmm prenatal_avail1 (received=treatment) prenatal_avail0 prenatal_avail_miss i.distnum, cluster(cluster2)
sum prenatal_avail1 if treatment==0

reg deliver1 treatment deliver0 deliver_miss i.distnum, cluster(cluster2)
ivregress gmm deliver1 (received=treatment) deliver0 deliver_miss i.distnum, cluster(cluster2)
sum deliver1 if treatment==0

reg bed_no1 treatment bed_no0 bed_no_miss i.distnum, cluster(cluster2)
ivregress gmm bed_no1 (received=treatment) bed_no0 bed_no_miss i.distnum, cluster(cluster2)
sum bed_no1 if treatment==0

reg head_work1 treatment i.distnum, cluster(cluster2)
ivregress gmm head_work1 (received=treatment) i.distnum, cluster(cluster2)
sum head_work1 if treatment==0

*****

reg health_visits_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm health_visits_index1 (received=treatment) i.distnum, cluster(cluster2)
sum health_visits_index1 if treatment==0

reg govt_visits_11 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_11 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_11 if treatment==0

reg govt_visits_21 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_21 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_21 if treatment==0

reg govt_visits_31 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_31 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_31 if treatment==0

reg govt_visits_41 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_41 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_41 if treatment==0

reg govt_visits_51 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_51 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_51 if treatment==0

reg govt_visits_61 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_61 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_61 if treatment==0

reg govt_visits_71 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_71 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_71 if treatment==0

reg govt_visits_81 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_81 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_81 if treatment==0

reg govt_visits_91 treatment i.distnum, cluster(cluster2)
ivregress gmm govt_visits_91 (received=treatment) i.distnum, cluster(cluster2)
sum govt_visits_91 if treatment==0

****************

reg prenatal_index1 treatment prenatal_index0 prenatal_miss i.distnum, cluster(cluster2)
ivregress gmm prenatal_index1 (received=treatment) prenatal_index0 prenatal_miss i.distnum, cluster(cluster2)
sum prenatal_index1 if treatment==0

reg AnyPrenatal1 treatment AnyPrenatal0 AnyPrenatal_miss i.distnum, cluster(cluster2)
ivregress gmm AnyPrenatal1 (received=treatment) AnyPrenatal0 AnyPrenatal_miss i.distnum, cluster(cluster2)
sum AnyPrenatal1 if treatment==0

reg WeeksFirstPrenatal1 treatment WeeksFirstPrenatal0 WeeksFirstPrenatal_miss i.distnum, cluster(cluster2)
ivregress gmm WeeksFirstPrenatal1 (received=treatment) WeeksFirstPrenatal0 WeeksFirstPrenatal_miss i.distnum, cluster(cluster2)
sum WeeksFirstPrenatal1 if treatment==0

reg WhoFirstPrenatal1 treatment WhoFirstPrenatal0 WhoFirstPrenatal_miss i.distnum, cluster(cluster2)
ivregress gmm WhoFirstPrenatal1 (received=treatment) WhoFirstPrenatal0 WhoFirstPrenatal_miss i.distnum, cluster(cluster2)
sum WhoFirstPrenatal1 if treatment==0

reg WhoFirstPrenatalTimes1 treatment WhoFirstPrenatalTimes0 WhoFirstPrenatalTimes_miss i.distnum, cluster(cluster2)
ivregress gmm WhoFirstPrenatalTimes1 (received=treatment) WhoFirstPrenatalTimes0 WhoFirstPrenatalTimes_miss i.distnum, cluster(cluster2)
sum WhoFirstPrenatalTimes1 if treatment==0

*****************

reg postnatal_index1 treatment postnatal_index0 postnatal_miss i.distnum, cluster(cluster2)
ivregress gmm postnatal_index1 (received=treatment) postnatal_index0 postnatal_miss i.distnum, cluster(cluster2)
sum postnatal_index1 if treatment==0

reg PostNatal1 treatment PostNatal0 PostNatal_miss i.distnum, cluster(cluster2)
ivregress gmm PostNatal1 (received=treatment) PostNatal0 PostNatal_miss i.distnum, cluster(cluster2)
sum PostNatal1 if treatment==0

reg PostNatalTimes1 treatment PostNatalTimes0 PostNatalTimes_miss i.distnum, cluster(cluster2)
ivregress gmm PostNatalTimes1 (received=treatment) PostNatalTimes0 PostNatalTimes_miss i.distnum, cluster(cluster2)
sum PostNatalTimes1 if treatment==0

reg Breastfeed1 treatment i.distnum, cluster(cluster2)
ivregress gmm Breastfeed1 (received=treatment) i.distnum, cluster(cluster2)
sum Breastfeed1 if treatment==0

reg Water1 treatment i.distnum, cluster(cluster2)
ivregress gmm Water1 (received=treatment) i.distnum, cluster(cluster2)
sum Water1 if treatment==0

reg Liquid1 treatment i.distnum, cluster(cluster2)
ivregress gmm Liquid1 (received=treatment) i.distnum, cluster(cluster2)
sum Liquid1 if treatment==0

reg Solid1 treatment i.distnum, cluster(cluster2)
ivregress gmm Solid1 (received=treatment) i.distnum, cluster(cluster2)
sum Solid1 if treatment==0

reg Height_cm_age11 treatment i.distnum, cluster(cluster2)
ivregress gmm Height_cm_age11 (received=treatment) i.distnum, cluster(cluster2)
sum Height_cm_age11 if treatment==0

reg Weight_kg_age11 treatment Weight_kg_age10 Weight_kg_age1_miss i.distnum, cluster(cluster2)
ivregress gmm Weight_kg_age11 (received=treatment) Weight_kg_age10 Weight_kg_age1_miss i.distnum, cluster(cluster2)
sum Weight_kg_age11 if treatment==0

reg Arm_cm_age11 treatment Arm_cm_age10 Arm_cm_age1_miss i.distnum, cluster(cluster2)
ivregress gmm Arm_cm_age11 (received=treatment) Arm_cm_age10 Arm_cm_age1_miss i.distnum, cluster(cluster2)
sum Arm_cm_age11 if treatment==0

******************

reg hiv_index1 treatment hiv_index0 hiv_miss i.distnum, cluster(cluster2)
ivregress gmm hiv_index1 (received=treatment) hiv_index0 hiv_miss i.distnum, cluster(cluster2)
sum hiv_index1 if treatment==0

reg HIV_Heard1 treatment HIV_Heard0 HIV_Heard_miss i.distnum, cluster(cluster2)
ivregress gmm HIV_Heard1 (received=treatment) HIV_Heard0 HIV_Heard_miss i.distnum, cluster(cluster2)
sum HIV_Heard1 if treatment==0

reg HIV_Prevent1 treatment HIV_Prevent0 HIV_Prevent_miss i.distnum, cluster(cluster2)
ivregress gmm HIV_Prevent1 (received=treatment) HIV_Prevent0 HIV_Prevent_miss i.distnum, cluster(cluster2)
sum HIV_Prevent1 if treatment==0

reg HIV_LookHealthy1 treatment HIV_LookHealthy0 HIV_LookHealthy_miss i.distnum, cluster(cluster2)
ivregress gmm HIV_LookHealthy1 (received=treatment) HIV_LookHealthy0 HIV_LookHealthy_miss i.distnum, cluster(cluster2)
sum HIV_LookHealthy1 if treatment==0

reg HIV_MtC1 treatment HIV_MtC0 HIV_MtC_miss i.distnum, cluster(cluster2)
ivregress gmm HIV_MtC1 (received=treatment) HIV_MtC0 HIV_MtC_miss i.distnum, cluster(cluster2)
sum HIV_MtC1 if treatment==0

******

reg pub_sanit_index1 treatment pub_sanit_index0 pub_sanit_miss i.distnum, cluster(cluster2)
ivregress gmm pub_sanit_index1 (received=treatment) pub_sanit_index0 pub_sanit_miss i.distnum, cluster(cluster2)
sum pub_sanit_index1 if treatment==0

reg sanit_improve1 treatment i.distnum, cluster(cluster2)
ivregress gmm sanit_improve1 (received=treatment) i.distnum, cluster(cluster2)
sum sanit_improve1 if treatment==0

reg bad_sanit1 treatment i.distnum, cluster(cluster2)
ivregress gmm bad_sanit1 (received=treatment) i.distnum, cluster(cluster2)
sum bad_sanit1 if treatment==0

***********************

reg electric_index1 treatment electric_index0 electric_miss i.distnum, cluster(cluster2)
ivregress gmm electric_index1 (received=treatment) electric_index0 electric_miss i.distnum, cluster(cluster2)
sum electric_index1 if treatment==0

reg elec_avail1 treatment elec_avail0 elec_avail_miss i.distnum, cluster(cluster2)
ivregress gmm elec_avail1 (received=treatment) elec_avail0 elec_avail_miss i.distnum, cluster(cluster2)
sum elec_avail1 if treatment==0

reg elec_recent1 treatment elec_recent0 elec_recent_miss i.distnum, cluster(cluster2)
ivregress gmm elec_recent1 (received=treatment) elec_recent0 elec_recent_miss i.distnum, cluster(cluster2)
sum elec_recent1 if treatment==0 

reg elec_pct1 treatment elec_pct0 elec_pct_miss i.distnum, cluster(cluster2)
ivregress gmm elec_pct1 (received=treatment) elec_pct0 elec_pct_miss i.distnum, cluster(cluster2)
sum elec_pct1 if treatment==0

reg elec_noloss1 treatment elec_noloss0 elec_noloss_miss i.distnum, cluster(cluster2)
ivregress gmm elec_noloss1 (received=treatment) elec_noloss0 elec_noloss_miss i.distnum, cluster(cluster2)
sum elec_noloss1 if treatment==0

************************

reg conserv_ag_index1 treatment i.distnum, cluster(cluster2)
ivregress gmm conserv_ag_index1 (received=treatment) i.distnum, cluster(cluster2)
sum conserv_ag_index1 if treatment==0

reg AgImprove1 treatment i.distnum, cluster(cluster2)
ivregress gmm AgImprove1 (received=treatment) i.distnum, cluster(cluster2)
sum AgImprove1 if treatment==0

reg TreesHowMany1 treatment i.distnum, cluster(cluster2)
ivregress gmm TreesHowMany1 (received=treatment) i.distnum, cluster(cluster2)
sum TreesHowMany1 if treatment==0

reg Legumes1 treatment i.distnum, cluster(cluster2)
ivregress gmm Legumes1 (received=treatment) i.distnum, cluster(cluster2)
sum Legumes1 if treatment==0

***********************

reg biz_index1 treatment biz_index0 biz_miss i.distnum, cluster(cluster2)
ivregress gmm biz_index1 (received=treatment) biz_index0 biz_miss i.distnum, cluster(cluster2)
sum biz_index1 if treatment==0

reg BizProfit1 treatment BizProfit0 BizProfit_miss i.distnum, cluster(cluster2)
ivregress gmm BizProfit1 (received=treatment) BizProfit0 BizProfit_miss i.distnum, cluster(cluster2)
sum BizProfit1 if treatment==0

reg BizDaysPerWeek1 treatment i.distnum, cluster(cluster2)
ivregress gmm BizDaysPerWeek1 (received=treatment) i.distnum, cluster(cluster2)
sum BizDaysPerWeek1 if treatment==0

reg BizWorkers1 treatment i.distnum, cluster(cluster2)
ivregress gmm BizWorkers1 (received=treatment) i.distnum, cluster(cluster2)
sum BizWorkers1 if treatment==0

reg StartBiz1 treatment StartBiz0 StartBiz_miss i.distnum, cluster(cluster2)
ivregress gmm StartBiz1 (received=treatment) StartBiz0 StartBiz_miss i.distnum, cluster(cluster2)
sum StartBiz1 if treatment==0

*****************************

reg dur_asset_index1 treatment dur_asset_index0 dur_asset_miss i.distnum, cluster(cluster2)
ivregress gmm dur_asset_index1 (received=treatment) dur_asset_index0 dur_asset_miss i.distnum, cluster(cluster2)
sum dur_asset_index1 if treatment==0

reg TV1 treatment TV0 TV_miss i.distnum, cluster(cluster2)
ivregress gmm TV1 (received=treatment) TV0 TV_miss i.distnum, cluster(cluster2)
sum TV1 if treatment==0

reg satellite1 treatment satellite0 satellite_miss i.distnum, cluster(cluster2)
ivregress gmm satellite1 (received=treatment) satellite0 satellite_miss i.distnum, cluster(cluster2)
sum satellite1 if treatment==0

reg refrigerators1 treatment refrigerators0 refrigerators_miss i.distnum, cluster(cluster2)
ivregress gmm refrigerators1 (received=treatment) refrigerators0 refrigerators_miss i.distnum, cluster(cluster2)
sum refrigerators1 if treatment==0

reg fans1 treatment fans0 fans_miss i.distnum, cluster(cluster2)
ivregress gmm fans1 (received=treatment) fans0 fans_miss i.distnum, cluster(cluster2)
sum fans1 if treatment==0

reg sewingmachine1 treatment sewingmachine0 sewingmachine_miss i.distnum, cluster(cluster2)
ivregress gmm sewingmachine1 (received=treatment) sewingmachine0 sewingmachine_miss i.distnum, cluster(cluster2)
sum sewingmachine1 if treatment==0

reg motorcycle1 treatment motorcycle0 motorcycle_miss i.distnum, cluster(cluster2)
ivregress gmm motorcycle1 (received=treatment) motorcycle0 motorcycle_miss i.distnum, cluster(cluster2)
sum motorcycle1 if treatment==0

reg bicycle1 treatment bicycle0 bicycle_miss i.distnum, cluster(cluster2)
ivregress gmm bicycle1 (received=treatment) bicycle0 bicycle_miss i.distnum, cluster(cluster2)
sum bicycle1 if treatment==0

*****************************

reg fin_saving_index1 treatment fin_saving_index0 fin_saving_miss i.distnum, cluster(cluster2)
ivregress gmm fin_saving_index1 (received=treatment) fin_saving_index0 fin_saving_miss i.distnum, cluster(cluster2)
sum fin_saving_index1 if treatment==0

reg Savings1 treatment Savings0 Savings_miss i.distnum, cluster(cluster2)
ivregress gmm Savings1 (received=treatment) Savings0 Savings_miss i.distnum, cluster(cluster2)
sum Savings1 if treatment==0

reg SavingsFlow1 treatment SavingsFlow0 SavingsFlow_miss i.distnum, cluster(cluster2)
ivregress gmm SavingsFlow1 (received=treatment) SavingsFlow0 SavingsFlow_miss i.distnum, cluster(cluster2)
sum SavingsFlow1 if treatment==0

reg SavingsBalance1 treatment SavingsBalance0 SavingsBalance_miss i.distnum, cluster(cluster2)
ivregress gmm SavingsBalance1 (received=treatment) SavingsBalance0 SavingsBalance_miss i.distnum, cluster(cluster2)
sum SavingsBalance1 if treatment==0

reg fin_exist1 treatment fin_exist0 fin_exist_miss i.distnum, cluster(cluster2)
ivregress gmm fin_exist1 (received=treatment) fin_exist0 fin_exist_miss i.distnum, cluster(cluster2)
sum fin_exist1 if treatment==0

********************
 
reg fin_credit_index1 treatment fin_credit_index0 fin_credit_miss i.distnum, cluster(cluster2)
ivregress gmm fin_credit_index1 (received=treatment) fin_credit_index0 fin_credit_miss i.distnum, cluster(cluster2)
sum fin_credit_index1 if treatment==0

reg loan_form1 treatment loan_form0 loan_form_miss i.distnum, cluster(cluster2)
ivregress gmm loan_form1 (received=treatment) loan_form0 loan_form_miss i.distnum, cluster(cluster2)
sum loan_form1 if treatment==0

reg loan_amt1 treatment i.distnum, cluster(cluster2)
ivregress gmm loan_amt1 (received=treatment) i.distnum, cluster(cluster2)
sum loan_amt1 if treatment==0

reg fin_loan1 treatment fin_loan0 fin_loan_miss i.distnum, cluster(cluster2)
ivregress gmm fin_loan1 (received=treatment) fin_loan0 fin_loan_miss i.distnum, cluster(cluster2)
sum fin_loan1 if treatment==0

reg i_rate_neg1 treatment  i.distnum, cluster(cluster2)
ivregress gmm i_rate_neg1 (received=treatment)  i.distnum, cluster(cluster2)
sum i_rate_neg1 if treatment==0

**************************************
*TABLE I1*****************************
*TOT FIRST STAGE REGRESSION*
**************************************

use finalusingindices_withbaselinepol_anon.dta, replace

gen completed = 1 - attrit

reg received treatment i.distnum if attrit!=1, cluster(cluster)


****************************************************
*APPENDIX J: FULLY SATURATED MODELS WITH INTERACTIONS*
****************************************************

global esttabformat b(%8.3f) se(%8.3f) obs r2(%8.3f) star(+ 0.10 * 0.05 ** 0.01)


*TABLE J1: HH SURVEY RESULTS ON POLIITCAL PARTICIPATION*

use finalusingindices_withbaselinepol_anon.dta, clear

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in villageparticipation villagequality DAquality food_security literacy_education health_nutrition environment livelihood{
			replace `i'_index0 = 0 if `i'_miss == 1
}

eststo i1a: reg villageparticipation_index1  treatment##NDC_HH_base villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
sum villageparticipation_index1 if treatment==0 & NDC_HH_base==0

eststo i1b: reg villagequality_index1 treatment##NDC_HH_base villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
sum villagequality_index1 if treatment==0 & NDC_HH_base==0

eststo i1c: reg DAquality_index1 treatment##NDC_HH_base DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
sum DAquality_index1 if treatment==0 & NDC_HH_base==0

esttab i1a i1b i1c using "tableJ1.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) order(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) $esttabformat replace label onecell



ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress villageparticipation_index1  c.treatment##c.NDC_HH_base villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)




*TABLE J2: LOCAL GOVERNMENT PARTICIPATION*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

eststo i2a: xi: reg turnout EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum turnout if EAtreatment==0 & NDCstronghold==0

eststo i2b: xi: reg numcandidatesBEST EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum numcandidatesBEST if EAtreatment==0 & NDCstronghold==0

eststo i2c: xi: reg st_activity EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum st_activity if EAtreatment==0 & NDCstronghold==0

esttab i2a i2b i2c using "tableJ2.rtf", keep(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.NDCstronghold) order(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.NDCstronghold) $esttabformat replace label onecell


*TABLE J3*

*PANEL A*

use finalusingindices_withbaselinepol_anon.dta, clear

eststo i3Aa: reg timemoneyPG1 treatment##NDC_HH_base  i.distnum, cluster(cluster2)
sum timemoneyPG1 if treatment==0 & NDC_HH_base==0

eststo i3Ab: reg timemoneyPGEpi1 treatment##NDC_HH_base i.distnum, cluster(cluster2)
sum timemoneyPGEpi1 if treatment==0 & NDC_HH_base==0

eststo i3Ac: reg timemoneyPGNotEpi1 treatment##NDC_HH_base i.distnum, cluster(cluster2)
sum timemoneyPGNotEpi1 if treatment==0 & NDC_HH_base==0

esttab i3Aa i3Ab i3Ac using "tableJ3A.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) order(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) $esttabformat replace label onecell


*PANEL B*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

eststo i3Ba: xi: reg avLGfinancing EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum avLGfinancing if EAtreatment==0 & NDCstronghold==0

eststo i3Bb: xi: reg avLGfinancing_epi EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum avLGfinancing_epi if EAtreatment==0 & NDCstronghold==0

eststo i3Bc: xi: reg avLGfinancing_notepi EAtreatment##NDCstronghold i.district, cluster(supercluster2)
sum avLGfinancing_notepi if EAtreatment==0 & NDCstronghold==0

esttab i3Ba i3Bb i3Bc using "tableJ3B.rtf", keep(1.EAtreatment 1.NDCstronghold 1.EAtreatment#1.NDCstronghold) order(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.NDCstronghold) $esttabformat replace label onecell

*TABLE J4*

use finalusingindices_withbaselinepol_anon.dta, clear

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in food_security literacy_education health_nutrition environment livelihood wellbeing{
			replace `i'_index0 = 0 if `i'_miss == 1
}


eststo i4a: reg wellbeing_index1 treatment##NDC_HH_base wellbeing_index0 wellbeing_miss i.distnum, cluster(cluster2)
sum wellbeing_index1 if treatment==0 & NDC_HH_base==0

****

eststo i4b: reg food_security_index1 treatment##NDC_HH_base food_security_index0 food_security_miss i.distnum, cluster(cluster2)
sum food_security_index1 if treatment==0 & NDC_HH_base==0

****

eststo i4c: reg literacy_education_index1 treatment##NDC_HH_base literacy_education_index0 literacy_education_miss i.distnum, cluster(cluster2)
sum literacy_education_index1 if treatment==0 & NDC_HH_base==0

****

eststo i4d: reg health_nutrition_index1 treatment##NDC_HH_base health_nutrition_index0 health_nutrition_miss i.distnum, cluster(cluster2)
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==0


****

eststo i4e: reg environment_index1 treatment##NDC_HH_base environment_index0 environment_miss i.distnum, cluster(cluster2)
sum environment_index1 if treatment==0 & NDC_HH_base==0

****

eststo i4f: reg livelihood_index1 treatment##NDC_HH_base livelihood_index0 livelihood_miss i.distnum, cluster(cluster2)
sum livelihood_index1 if treatment==0 & NDC_HH_base==0

esttab i4a i4b i4c i4d i4e i4f using "tableJ4.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) order(1.treatment 1.treatment#1.NDC_HH_base 1.NDC_HH_base) $esttabformat replace label onecell

********************************************************************************************************
*APPENDIX K. RANDOMIZATION INFERENCE*
********************************************************************************************************

global esttabformat b(%8.3f) se(%8.3f) obs r2(%8.3f) star(+ 0.10 * 0.05 ** 0.01)

*TABLE K1: HH SURVEY RESULTS ON POLIITCAL PARTICIPATION*

use finalusingindices_withbaselinepol_anon.dta, clear

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in villageparticipation villagequality DAquality food_security literacy_education health_nutrition environment livelihood{
			replace `i'_index0 = 0 if `i'_miss == 1
}

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress villageparticipation_index1  c.treatment##c.NDC_HH_base villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
sum villageparticipation_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress villagequality_index1 c.treatment##c.NDC_HH_base villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
sum villagequality_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress DAquality_index1 c.treatment##c.NDC_HH_base DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
sum DAquality_index1 if treatment==0 & NDC_HH_base==0


*TABLE K2: LOCAL GOVERNMENT PARTICIPATION*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

encode district, gen(distnum)

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress turnout c.EAtreatment##c.NDCstronghold i.distnum, cluster(supercluster2)
sum turnout if EAtreatment==0 & NDCstronghold==0

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress numcandidatesBEST c.EAtreatment##c.NDCstronghold i.distnum, cluster(supercluster2)
sum numcandidatesBEST if EAtreatment==0 & NDCstronghold==0

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress st_activity c.EAtreatment##c.NDCstronghold i.distnum, cluster(supercluster2)
sum st_activity if EAtreatment==0 & NDCstronghold==0

*TABLE K3*

*PANEL A*

use finalusingindices_withbaselinepol_anon.dta, clear

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress timemoneyPG1 c.treatment##c.NDC_HH_base i.distnum
sum timemoneyPG1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress timemoneyPGEpi1 c.treatment##c.NDC_HH_base i.distnum
sum timemoneyPGEpi1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress timemoneyPGNotEpi1 c.treatment##c.NDC_HH_base i.distnum
sum timemoneyPGNotEpi1 if treatment==0 & NDC_HH_base==0


*PANEL B*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

encode district, gen(distnum)

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress avLGfinancing c.EAtreatment##c.NDCstronghold i.distnum
sum avLGfinancing if EAtreatment==0 & NDCstronghold==0

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress avLGfinancing_epi c.EAtreatment##c.NDCstronghold i.distnum
sum avLGfinancing_epi if EAtreatment==0 & NDCstronghold==0

ritest EAtreatment _b[c.EAtreatment] _b[c.EAtreatment#c.NDCstronghold] _b[c.NDCstronghold], reps(1000) seed(125) cluster(supercluster2) strata(distnum): ///
regress avLGfinancing_notepi c.EAtreatment##c.NDCstronghold i.distnum
sum avLGfinancing_notepi if EAtreatment==0 & NDCstronghold==0


*TABLE K4*

use finalusingindices_withbaselinepol_anon.dta, clear

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in food_security literacy_education health_nutrition environment livelihood wellbeing{
			replace `i'_index0 = 0 if `i'_miss == 1
}


ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress wellbeing_index1  c.treatment##c.NDC_HH_base wellbeing_index0 wellbeing_miss i.distnum
sum wellbeing_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress food_security_index1  c.treatment##c.NDC_HH_base food_security_index0 food_security_miss i.distnum
sum food_security_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress literacy_education_index1  c.treatment##c.NDC_HH_base literacy_education_index0 literacy_education_miss i.distnum
sum literacy_education_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress health_nutrition_index1  c.treatment##c.NDC_HH_base health_nutrition_index0 health_nutrition_miss i.distnum
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress environment_index1  c.treatment##c.NDC_HH_base environment_index0 environment_miss i.distnum
sum environment_index1 if treatment==0 & NDC_HH_base==0

ritest treatment _b[c.treatment] _b[c.treatment#c.NDC_HH_base] _b[c.NDC_HH_base], reps(1000) seed(125) cluster(cluster2) strata(distnum): ///
regress livelihood_index1  c.treatment##c.NDC_HH_base livelihood_index0 livelihood_miss i.distnum
sum livelihood_index1 if treatment==0 & NDC_HH_base==0


********************************************************************************************************
*TABLE L1. HETEROGENOUS EFFECTS CONTROLLING FOR POSSIBLE TREATMENT DIFFERENCES ACROSS WAVE 1 AND WAVE 2*
********************************************************************************************************

global esttabformat b(%8.3f) se(%8.3f) obs r2(%8.3f) star(+ 0.10 * 0.05 ** 0.01)

*TABLE L1: HH SURVEY RESULTS ON POLITICAL PARTICIPATION*

use finalusingindices_withbaselinepol_anon.dta, clear

gen wave2 = 0
replace wave2 = 1 if district=="Yilo Krobo"
replace wave2 = 1 if district=="Afram Plains(Kwahu North)"
replace wave2 = 1 if district=="Akwapim South"

bysort wave2: tab NDC_HH_base

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES
foreach i in villageparticipation villagequality DAquality food_security literacy_education health_nutrition environment livelihood{
			replace `i'_index0 = 0 if `i'_miss == 1
}

eststo l1a: reg villageparticipation_index1  treatment##NDC_HH_base treatment##wave2 villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
sum villageparticipation_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

eststo l1b: reg villagequality_index1 treatment##NDC_HH_base treatment##wave2 villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
sum villagequality_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

eststo l1c: reg DAquality_index1 treatment##NDC_HH_base treatment##wave2 DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
sum DAquality_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

esttab l1a l1b l1c using "tableL1.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base  1.wave2) order(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base 1.wave2) $esttabformat replace label onecell


*TABLE L2: LOCAL GOVERNMENT PARTICIPATION*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

gen wave2 = 0
replace wave2 = 1 if district=="AFRAM PLAINS"
replace wave2 = 1 if district=="AKWAPIM SOUTH"
replace wave2 = 1 if district=="YILO KROBO"

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

eststo l2a: xi: reg turnout EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum turnout if EAtreatment==0 & NDCstronghold==0 & wave2==0

eststo l2b: xi: reg numcandidatesBEST EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum numcandidatesBEST if EAtreatment==0 & NDCstronghold==0 & wave2==0

eststo l2c: xi: reg st_activity EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum st_activity if EAtreatment==0 & NDCstronghold==0 & wave2==0

esttab l2a l2b l2c using "tableL2.rtf", keep(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.EAtreatment#1.wave2 1.NDCstronghold 1.wave2) order(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.EAtreatment#1.wave2 1.NDCstronghold 1.wave2) $esttabformat replace label onecell


*TABLE L3*

*PANEL A*

use finalusingindices_withbaselinepol_anon.dta, clear

gen wave2 = 0
replace wave2 = 1 if district=="Yilo Krobo"
replace wave2 = 1 if district=="Afram Plains(Kwahu North)"
replace wave2 = 1 if district=="Akwapim South"

eststo l3Aa: reg timemoneyPG1 treatment##NDC_HH_base treatment##wave2  i.distnum, cluster(cluster2)
sum timemoneyPG1 if treatment==0 & NDC_HH_base==0 & wave2==0

eststo l3Ab: reg timemoneyPGEpi1 treatment##NDC_HH_base treatment##wave2 i.distnum, cluster(cluster2)
sum timemoneyPGEpi1 if treatment==0 & NDC_HH_base==0 & wave2==0

eststo l3Ac: reg timemoneyPGNotEpi1 treatment##NDC_HH_base treatment##wave2 i.distnum, cluster(cluster2)
sum timemoneyPGNotEpi1 if treatment==0 & NDC_HH_base==0 & wave2==0

esttab l3Aa l3Ab l3Ac using "tableL3A.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base  1.wave2) order(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base 1.wave2) $esttabformat replace label onecell


*PANEL B*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

gen wave2 = 0
replace wave2 = 1 if district=="AFRAM PLAINS"
replace wave2 = 1 if district=="AKWAPIM SOUTH"
replace wave2 = 1 if district=="YILO KROBO"

gen NDCstronghold = 0 if eaNDC<.3
replace NDCstronghold = 1 if eaNDC>=.3 & eaNDC<.

eststo l3Ba: xi: reg avLGfinancing EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum avLGfinancing if EAtreatment==0 & NDCstronghold==0 & wave2==0

eststo l3Bb: xi: reg avLGfinancing_epi EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum avLGfinancing_epi if EAtreatment==0 & NDCstronghold==0 & wave2==0

eststo l3Bc: xi: reg avLGfinancing_notepi EAtreatment##NDCstronghold EAtreatment##wave2 i.district, cluster(supercluster2)
sum avLGfinancing_notepi if EAtreatment==0 & NDCstronghold==0 & wave2==0

esttab l3Ba l3Bb l3Bc using "tableL3B.rtf", keep(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.EAtreatment#1.wave2 1.NDCstronghold 1.wave2) order(1.EAtreatment 1.EAtreatment#1.NDCstronghold 1.EAtreatment#1.wave2 1.NDCstronghold 1.wave2) $esttabformat replace label onecell

*TABLE L4*

use finalusingindices_withbaselinepol_anon.dta, clear

gen wave2 = 0
replace wave2 = 1 if district=="Yilo Krobo"
replace wave2 = 1 if district=="Afram Plains(Kwahu North)"
replace wave2 = 1 if district=="Akwapim South"


*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in food_security literacy_education health_nutrition environment livelihood wellbeing{
			replace `i'_index0 = 0 if `i'_miss == 1
}


eststo l4a: reg wellbeing_index1 treatment##NDC_HH_base treatment##wave2 wellbeing_index0 wellbeing_miss i.distnum, cluster(cluster2)
sum wellbeing_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

****

eststo l4b: reg food_security_index1 treatment##NDC_HH_base treatment##wave2 food_security_index0 food_security_miss i.distnum, cluster(cluster2)
sum food_security_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

****

eststo l4c: reg literacy_education_index1 treatment##NDC_HH_base treatment##wave2 literacy_education_index0 literacy_education_miss i.distnum, cluster(cluster2)
sum literacy_education_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

****

eststo l4d: reg health_nutrition_index1 treatment##NDC_HH_base treatment##wave2 health_nutrition_index0 health_nutrition_miss i.distnum, cluster(cluster2)
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==0 & wave2==0


****

eststo l4e: reg environment_index1 treatment##NDC_HH_base treatment##wave2 environment_index0 environment_miss i.distnum, cluster(cluster2)
sum environment_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

****

eststo l4f: reg livelihood_index1 treatment##NDC_HH_base treatment##wave2 livelihood_index0 livelihood_miss i.distnum, cluster(cluster2)
sum livelihood_index1 if treatment==0 & NDC_HH_base==0 & wave2==0

esttab l4a l4b l4c l4d l4e l4f using "tableL4.rtf", keep(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base 1.wave2) order(1.treatment 1.treatment#1.NDC_HH_base 1.treatment#1.wave2 1.NDC_HH_base 1.wave2) $esttabformat replace label onecell



****************************************
*FIGURES IN APPENDIX M******************
*EA-LEVEL RESULTS BY DIFFERENT CUT-OFFS*
****************************************

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

gen NDCvillage20 = 0 if eaNDC<.2
replace NDCvillage20 = 1 if eaNDC>=.2 & eaNDC<.

gen NDCvillage25 = 0 if eaNDC<.25
replace NDCvillage25 =1 if eaNDC>=.25 & eaNDC<.

gen NDCvillage30 = 0 if eaNDC<.3
replace NDCvillage30 =1 if eaNDC>=.3 & eaNDC<.

gen NDCvillage35 = 0 if eaNDC<.35
replace NDCvillage35 =1 if eaNDC>=.35 & eaNDC<.

gen NDCvillage40 = 0 if eaNDC<.4
replace NDCvillage40 = 1 if eaNDC>=.4 & eaNDC<.

*Turnout*

foreach i in 20 25 30 35 40{

xi: reg turnout EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg turnout EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-.4(.1) .3,nogrid)/*
*/   yscale(range(-.55 .4)) yline(0) title("Turnout") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Turnout_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Turnout_20.gph Turnout_25.gph Turnout_30.gph Turnout_35.gph Turnout_40.gph, cols(3) iscale(.45) saving(Turnout, replace) 
***

*Candidates*

foreach i in 20 25 30 35 40{

xi: reg numcandidatesBEST EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg numcandidatesBEST EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-1(.5) 2,nogrid)/*
*/   yscale(range(-1 .2)) yline(0) title("Number Candidates") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Candidates_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Candidates_20.gph Candidates_25.gph Candidates_30.gph Candidates_35.gph Candidates_40.gph, cols(3) iscale(.45) saving(Candidates, replace) 

***

*Representative's Activities*

foreach i in 20 25 30 35 40{

xi: reg st_activity EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg st_activity EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-1(.5) 2,nogrid)/*
*/   yscale(range(-1 .2)) yline(0) title("Representative's Activity") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Activity_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Activity_20.gph Activity_25.gph Activity_30.gph Activity_35.gph Activity_40.gph, cols(3) iscale(.45) saving(Activity, replace) 
***

*LG Financing*

foreach i in 20 25 30 35 40{

xi: reg avLGfinancing EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg avLGfinancing EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-.4(.1) .3,nogrid)/*
*/   yscale(range(-.55 .4)) yline(0) title("Sectors w/ LG Projects") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Financing_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Financing_20.gph Financing_25.gph Financing_30.gph Financing_35.gph Financing_40.gph, cols(3) iscale(.45) saving(Financing, replace) 
***
*LG Financing (Epi)*

foreach i in 20 25 30 35 40{

xi: reg avLGfinancing_epi EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg avLGfinancing_epi EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-.4(.1) .3,nogrid)/*
*/   yscale(range(-.55 .4)) yline(0) title("THP sect. w/ LG Proj.") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Financingepi_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Financingepi_20.gph Financingepi_25.gph Financingepi_30.gph Financingepi_35.gph Financingepi_40.gph, cols(3) iscale(.45) saving(Financingepi, replace) 
***

*LG Financing (Epi)*

foreach i in 20 25 30 35 40{

xi: reg avLGfinancing_notepi EAtreatment i.district if NDCvillage`i'==1, cluster(supercluster2)

predictnl diff_1g = _b[EAtreatment], se(diff1g_se)

gen upper1g = diff_1g + diff1g_se*1.96
gen lower1g = diff_1g - diff1g_se*1.96

xi: reg avLGfinancing_notepi EAtreatment i.district if NDCvillage`i'==0, cluster(supercluster2)

predictnl diff_1o = _b[EAtreatment], se(diff1o_se)

gen upper1o = diff_1o + diff1o_se*1.96
gen lower1o = diff_1o - diff1o_se*1.96

gen diff_1 = diff_1g if NDCvillage`i'==1
replace diff_1 = diff_1o if NDCvillage`i'==0

gen upper1 = upper1g if NDCvillage`i'==1
replace upper1 = upper1o if NDCvillage`i'==0

gen lower1 = lower1g if NDCvillage`i'==1
replace lower1 = lower1o if NDCvillage`i'==0


sort diff_1

twoway (dot diff_1 NDCvillage`i', ndots(1) mcolor(gs2))(rcap upper1 lower1 NDCvillage`i', lcolor(gs2)), /*
*/     xtitle("non-NDC vs. NDC Villages (`i' % +)") xlabel(0 1) xsize(2.8) scale(1.4) ytitle("ITT Effect") ylabel(-.4(.1) .3,nogrid)/*
*/   yscale(range(-.55 .4)) yline(0) title("Non-THP sect. w/ LG Proj.") graphregion(fcolor(white) ifcolor(white) color(white) lcolor(white) ilcolor(white)) /*
*/  legend(off) saving(Financingnotepi_`i', replace)

drop diff_1g diff1g_se upper1g lower1g diff_1o diff1o_se upper1o lower1o diff_1 upper1 lower1
}

graph combine Financingnotepi_20.gph Financingnotepi_25.gph Financingnotepi_30.gph Financingnotepi_35.gph Financingnotepi_40.gph, cols(3) iscale(.45) saving(Financingnotepi, replace) 
***

*****************************************
*APPENDIX N: RESULTS DROPPING YILO KROBO*
*****************************************


*TABLE N1: HH SURVEY RESULTS ON POLIITCAL PARTICIPATION*

use finalusingindices_withbaselinepol_anon.dta, clear

drop if district=="Yilo Krobo"

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in villageparticipation villagequality DAquality food_security literacy_education health_nutrition environment livelihood{
			replace `i'_index0 = 0 if `i'_miss == 1
}


reg villageparticipation_index1  treatment villageparticipation_index0 villageparticipation_miss i.distnum, cluster(cluster2)
ivregress gmm villageparticipation_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum, vce(cluster cluster2)
sum villageparticipation_index1 if treatment==0 

reg villageparticipation_index1 treatment villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm villageparticipation_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum villageparticipation_index1 if treatment==0 & NDC_HH_base==1

reg villageparticipation_index1 treatment villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm villageparticipation_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum villageparticipation_index1 if treatment==0 & NDC_HH_base==0


reg villagequality_index1 treatment villagequality_index0 villagequality_miss i.distnum, cluster(cluster2)
ivregress gmm villagequality_index1 (received=treatment) villagequality_index0 villagequality_miss i.distnum, vce(cluster cluster2)
sum villagequality_index1 if treatment==0 

reg villagequality_index1 treatment villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm  villagequality_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum villagequality_index1 if treatment==0 & NDC_HH_base==1

reg villagequality_index1 treatment villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm villagequality_index1 (received=treatment) villageparticipation_index0 villageparticipation_miss i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum villagequality_index1 if treatment==0 & NDC_HH_base==0


reg DAquality_index1 treatment DAquality_index0 DAquality_miss i.distnum, cluster(cluster2)
ivregress gmm DAquality_index1 (received=treatment) DAquality_index0 DAquality_miss i.distnum, vce(cluster cluster2)
sum DAquality_index1 if treatment==0 

reg DAquality_index1 treatment DAquality_index0 DAquality_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm  DAquality_index1 (received=treatment) DAquality_index0 DAquality_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum DAquality_index1 if treatment==0 & NDC_HH_base==1

reg DAquality_index1 treatment DAquality_index0 DAquality_miss i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm DAquality_index1 (received=treatment) DAquality_index0 DAquality_miss i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum DAquality_index1 if treatment==0 & NDC_HH_base==0


*TABLE N2: LOCAL GOVERNMENT PARTICIPATION*

use electoralareadata_survey2006admin2010admin_polEA_anon, clear

*drop Yilo Krobo*
drop if district=="YILO KROBO"

xi: reg turnout EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm turnout (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum turnout if EAtreatment==0

xi: reg turnout EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm turnout (mobilizedEA=EAtreatment) i.district if eaNDC>=.3  & eaNDC<., vce(cluster supercluster2)
sum turnout if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg turnout EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm turnout (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum turnout if EAtreatment==0 & eaNDC<.3


xi: reg numcandidatesBEST EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm numcandidatesBEST (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum numcandidatesBEST if EAtreatment==0

xi: reg numcandidatesBEST EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm numcandidatesBEST (mobilizedEA=EAtreatment) i.district if eaNDC>=.3 & eaNDC<., vce(cluster supercluster2)
sum numcandidatesBEST if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg numcandidatesBEST EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm numcandidatesBEST (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum numcandidatesBEST if EAtreatment==0 & eaNDC<.3


xi: reg st_activity EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm st_activity (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum st_activity if EAtreatment==0

xi: reg st_activity EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm st_activity (mobilizedEA=EAtreatment) i.district if eaNDC>=.3 & eaNDC<., vce(cluster supercluster2)
sum st_activity if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg st_activity EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm st_activity (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum st_activity if EAtreatment==0 & eaNDC<.3

*TABLE N3*

*PANEL A*

use finalusingindices_withbaselinepol_anon.dta, clear

drop if district=="Yilo Krobo"

reg timemoneyPG1 treatment  i.distnum, cluster(cluster2)
ivregress gmm timemoneyPG1 (received=treatment)  i.distnum, vce(cluster cluster2)
sum timemoneyPG1 if treatment==0

reg timemoneyPG1 treatment  i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm timemoneyPG1 (received=treatment)  i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum timemoneyPG1 if treatment==0 & NDC_HH_base==1

reg timemoneyPG1 treatment  i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm timemoneyPG1 (received=treatment)  i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum timemoneyPG1 if treatment==0 & NDC_HH_base==0

reg timemoneyPGEpi1 treatment i.distnum, cluster(cluster2)
ivregress gmm timemoneyPGEpi1 (received=treatment) i.distnum, vce(cluster cluster2)
sum timemoneyPGEpi1 if treatment==0 

reg timemoneyPGEpi1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm timemoneyPGEpi1 (received=treatment) i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum timemoneyPGEpi1 if treatment==0 & NDC_HH_base==1

reg timemoneyPGEpi1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm timemoneyPGEpi1 (received=treatment) i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum timemoneyPGEpi1 if treatment==0 & NDC_HH_base==0


reg timemoneyPGNotEpi1 treatment i.distnum, cluster(cluster2)
ivregress gmm timemoneyPGNotEpi1 (received=treatment) i.distnum, vce(cluster cluster2)
sum timemoneyPGNotEpi1 if treatment==0

reg timemoneyPGNotEpi1 treatment i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm timemoneyPGNotEpi1 (received=treatment) i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum timemoneyPGNotEpi1 if treatment==0 & NDC_HH_base==1

reg timemoneyPGNotEpi1 treatment i.distnum if NDC_HH_base==0, cluster(cluster2)
ivregress gmm timemoneyPGNotEpi1 (received=treatment) i.distnum if NDC_HH_base==0, vce(cluster cluster2)
sum timemoneyPGNotEpi1 if treatment==0 & NDC_HH_base==0


use electoralareadata_survey2006admin2010admin_polEA_anon, clear

*drop Yilo Krobo*
drop if district=="YILO KROBO"

*PANEL B*

xi: reg avLGfinancing EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm avLGfinancing (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum avLGfinancing if EAtreatment==0

xi: reg avLGfinancing EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm avLGfinancing (mobilizedEA=EAtreatment) i.district if eaNDC>=.3 & eaNDC<., vce(cluster supercluster2)
sum avLGfinancing if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg avLGfinancing EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm avLGfinancing (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum avLGfinancing if EAtreatment==0 & eaNDC<.3


xi: reg avLGfinancing_epi EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm avLGfinancing_epi (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum avLGfinancing_epi if EAtreatment==0

xi: reg avLGfinancing_epi EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm avLGfinancing_epi (mobilizedEA=EAtreatment) i.district if eaNDC>=.3 & eaNDC<., vce(cluster supercluster2)
sum avLGfinancing_epi if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg avLGfinancing_epi EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm avLGfinancing_epi (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum avLGfinancing_epi if EAtreatment==0 & eaNDC<.3


xi: reg avLGfinancing_notepi EAtreatment i.district, cluster(supercluster2)
xi: ivregress gmm avLGfinancing_notepi (mobilizedEA=EAtreatment) i.district, vce(cluster supercluster2)
sum avLGfinancing_notepi if EAtreatment==0

xi: reg avLGfinancing_notepi EAtreatment i.district if eaNDC>=.3 & eaNDC<., cluster(supercluster2)
xi: ivregress gmm avLGfinancing_notepi (mobilizedEA=EAtreatment) i.district if eaNDC>=.3 & eaNDC<., vce(cluster supercluster2)
sum avLGfinancing_notepi if EAtreatment==0 & eaNDC>=.3 & eaNDC<.

xi: reg avLGfinancing_notepi EAtreatment i.district if eaNDC<.3, cluster(supercluster2)
xi: ivregress gmm avLGfinancing_notepi (mobilizedEA=EAtreatment) i.district if eaNDC<.3, vce(cluster supercluster2)
sum avLGfinancing_notepi if EAtreatment==0 & eaNDC<.3


*TABLE N4*

use finalusingindices_withbaselinepol_anon.dta, clear

drop if district=="Yilo Krobo"

*RECODING MISSING BASELINE DATA AS 0 FOR INDICES

foreach i in food_security literacy_education health_nutrition environment livelihood wellbeing{
			replace `i'_index0 = 0 if `i'_miss == 1
}


reg wellbeing_index1 treatment wellbeing_index0 wellbeing_miss i.distnum, cluster(cluster2)
ivregress gmm wellbeing_index1 (received=treatment) wellbeing_index0 wellbeing_miss i.distnum, vce(cluster cluster2)
sum wellbeing_index1 if treatment==0

reg wellbeing_index1 treatment wellbeing_index0 wellbeing_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm wellbeing_index1 (received=treatment) wellbeing_index0 wellbeing_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum wellbeing_index1 if treatment==0 & NDC_HH_base==1

reg wellbeing_index1 treatment wellbeing_index0 wellbeing_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm wellbeing_index1 (received=treatment) wellbeing_index0 wellbeing_miss  i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum wellbeing_index1 if treatment==0 & (NDC_HH_base==0)

****

reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum, cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum, vce(cluster cluster2)
sum food_security_index1 if treatment==0 


reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum food_security_index1 if treatment==0 & NDC_HH_base==1

reg food_security_index1 treatment food_security_index0 food_security_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm food_security_index1 (received=treatment) food_security_index0 food_security_miss i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum food_security_index1 if treatment==0 & (NDC_HH_base==0)



****

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum, cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum, vce(cluster cluster2)
sum literacy_education_index1 if treatment==0 

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum literacy_education_index1 if treatment==0 & NDC_HH_base==1

reg literacy_education_index1 treatment literacy_education_index0 literacy_education_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm literacy_education_index1 (received=treatment) literacy_education_index0 literacy_education_miss i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum literacy_education_index1 if treatment==0 & (NDC_HH_base==0)


****

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum, cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum, vce(cluster cluster2)
sum health_nutrition_index1 if treatment==0 

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum health_nutrition_index1 if treatment==0 & NDC_HH_base==1

reg health_nutrition_index1 treatment health_nutrition_index0 health_nutrition_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm health_nutrition_index1 (received=treatment) health_nutrition_index0 health_nutrition_miss i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum health_nutrition_index1 if treatment==0 & (NDC_HH_base==0)

****

reg environment_index1 treatment environment_index0 environment_miss i.distnum, cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum, vce(cluster cluster2)
sum environment_index1 if treatment==0 

reg environment_index1 treatment environment_index0 environment_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum environment_index1 if treatment==0 & NDC_HH_base==1

reg environment_index1 treatment environment_index0 environment_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm environment_index1 (received=treatment) environment_index0 environment_miss i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum environment_index1 if treatment==0 & (NDC_HH_base==0)

****

reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum, cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum, vce(cluster cluster2)
sum livelihood_index1 if treatment==0 

reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==1, cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum if NDC_HH_base==1, vce(cluster cluster2)
sum livelihood_index1 if treatment==0 & NDC_HH_base==1

reg livelihood_index1 treatment livelihood_index0 livelihood_miss i.distnum if (NDC_HH_base==0), cluster(cluster2)
ivregress gmm livelihood_index1 (received=treatment) livelihood_index0 livelihood_miss i.distnum if (NDC_HH_base==0), vce(cluster cluster2)
sum livelihood_index1 if treatment==0 & (NDC_HH_base==0)


